import { MongoClient } from 'mongodb';

const uri = ``;
const client = new MongoClient(uri);

const run = async () => {
  try {
    const db = client.db('demon');
    const userCol = db.collection('user');
    const users = await userCol.find();
    console.log('users', users);
  } finally {
    await client.close();
  }
};

run().catch(console.dir);
